package com.intellif.mozping.controller;

import com.intellif.mozping.config.MyConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author by mozping
 * @Classname TestController
 * @Description 测试控制器
 * @Date 2019/11/12 14:17
 */
@RestController
public class TestController {

    @Autowired
    MyConfig myConfig;

    @GetMapping
    public String hello() {
        return "hello world! Springboot ... " + myConfig.getName() + " -- " + myConfig.getAge();
    }
}